package com.zhaozhaonews.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.model.wemedia.dto.WmNewsDownOrUpDto;
import com.zhaozhaonews.model.wemedia.dto.WmNewsDto;
import com.zhaozhaonews.model.wemedia.dto.WmNewsPageReqDto;
import com.zhaozhaonews.model.wemedia.entity.WmNews;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 自媒体图文内容信息表 服务类
 * </p>
 *
 * @author WanJL
 * @since 2025-02-17
 */
public interface WmNewsService extends IService<WmNews> {
    /**
     * 查询新闻
     * @param wmNewsPageReqDto
     * @return
     */
    ResponseResult list(WmNewsPageReqDto wmNewsPageReqDto);

    /**
     * 发布新闻
     * @param dto
     * @return
     */
    ResponseResult submitNews(WmNewsDto dto);

    /**
     * 新闻的上下架
     * @param dto
     * @return
     */
    ResponseResult downOrUp(WmNewsDownOrUpDto dto);
}
